package com.dzl.moive.dao;

import com.dzl.base.mapper.BaseMapper;
import com.dzl.moive.pojo.WelfareMovieInfo;
import com.dzl.moive.pojo.query.WelfareMovieCityQuery;
import com.dzl.moive.pojo.query.WelfareMovieInfoManageQuery;
import com.dzl.moive.pojo.vo.WelfareMovieCountyVo;
import com.dzl.moive.pojo.vo.WelfareMoviePageBannerVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 电影基础信息(welfare_movie_info)表数据库访问层
 * @author liuguanjun
 * @date 2021-11-02 11:04:54
 */
public interface WelfareMovieInfoMapper extends BaseMapper<WelfareMovieInfo> {
    /**
     * 获取影片管理列表
     * @param query 电影信息查询
     * @author ChenLong
     * @date 2021-11-02 16:38:50
     **/
    List<WelfareMovieInfo> getMovieInfoManageList(WelfareMovieInfoManageQuery query);

    /**
     * 根据城市编码，电影id查询区县列表
     * @param query 城市名称等查询条件
     * @date 2021/5/18 15:42
     * @author liuguanjun
     */
    List<WelfareMovieCountyVo> selectMovieCountyList(WelfareMovieCityQuery query);

    /**
     * 查询电影板块首页banner图
     * @date 2021/11/10 09:49
     * @author liuguanjun
     */
    List<WelfareMoviePageBannerVo> selectMoviePageBannerList(@Param("enterpriseId") Integer enterpriseId);

    /**
     * 修改电影票销售数量
     * @author liuguanjun
     * @date 2021-11-10 16:13:35
     * @param movieid 溢价
     * @param saleCount 销售数量
     **/
    Integer updateMovieSaleCount(@Param("movieid") Integer movieid, @Param("saleCount") Integer saleCount);

}

